//package com.example.administrator.managesystem.activity.my_profile;
//
//import android.support.v4.app.Fragment;
//import android.support.v4.app.FragmentManager;
//import android.support.v4.app.FragmentTransaction;
//import android.view.View;
//import android.widget.FrameLayout;
//import android.widget.RelativeLayout;
//import android.widget.TextView;
//
//import com.example.administrator.managesystem.R;
//import com.example.administrator.managesystem.base.BaseActivity;
//import com.example.administrator.managesystem.fragment.firstpage.CircleFragment;
//
//import com.example.administrator.managesystem.fragment.firstpage.OrderMessageFragment;
//
//
///**
// * Created by Administrator on 2019/1/5.
// */
//
//public class MessageListActivity extends BaseActivity {
//    private Fragment government_notice,order_notice;
//    private TextView government_notice_tv,order_notice_tv;
//    private FrameLayout ly_content;
//
//    private FragmentManager fragmentManager;
//    @Override
//    public void initView() {
//     showfloatButton(true,false);
//     FragmentManager fragmentManager = getSupportFragmentManager();
////     government_notice=fragmentManager.findFragmentById(R.id.notice_government);
////     order_notice=fragmentManager.findFragmentById(R.id.notice_order);
//     government_notice_tv=findViewById(R.id.notice_government_tv);
//     order_notice_tv=findViewById(R.id.notice_order_tv);
//        ly_content = findViewById(R.id.fragment_container);
////        government_notice_tv.setOnClickListener(this);
////        order_notice_tv.setOnClickListener(this);
//
//
//    }
////    //重置所有文本的选中状态
////    public void selected(){
////        government_notice_tv.setSelected(false);
////        order_notice_tv.setSelected(false);
////
////    }
//    //隐藏所有Fragment
//    public void hideAllFragment(FragmentTransaction transaction){
//        if(government_notice!=null){
//            transaction.hide(government_notice);
//        }
//        if(order_notice!=null){
//            transaction.hide(order_notice);
//        }
//
//    }
//
//
//    @Override
//    public void doBusiness() {
//        FragmentTransaction transaction =getSupportFragmentManager().beginTransaction();
//        hideAllFragment(transaction);
//        government_notice = new GovernmentNoticeFragment();
//        transaction.add(R.id.fragment_container,government_notice);
//        transaction.commit();
//        government_notice_tv.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                FragmentTransaction transaction =getSupportFragmentManager().beginTransaction();
//                hideAllFragment(transaction);
//                government_notice_tv.setTextColor(getResources().getColor(R.color.color_yellow_deep));
//                order_notice_tv.setTextColor(getResources().getColor(R.color.black));
//                if(government_notice==null){
//                    government_notice = new GovernmentNoticeFragment();
//                    transaction.add(R.id.fragment_container,government_notice);
//                }else{
//                    transaction.show(government_notice);
//                }
//                transaction.commit();
//
//            }
//        });
//        order_notice_tv.setOnClickListener(new View.OnClickListener() {
//
//            @Override
//            public void onClick(View v) {
//                FragmentTransaction transaction =getSupportFragmentManager().beginTransaction();
//                hideAllFragment(transaction);
//                government_notice_tv.setTextColor(getResources().getColor(R.color.black));
//                order_notice_tv.setTextColor(getResources().getColor(R.color.color_yellow_deep));
//                if(order_notice==null){
//                    order_notice = new OrderMessageFragment();
//                    transaction.add(R.id.fragment_container,order_notice);
//                }else{
//                    transaction.show(order_notice);
//                }
//                transaction.commit();
//            }
//        });
//
//
//    }
//
//    @Override
//    public int getLayoutId() {
//        return R.layout.activity_message_list;
//    }
//
//
//}
